<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="Public/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="Public/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="Public/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="Public/Admin/Flat/img/favicon.ico">
	    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
	    <!--[if lt IE 9]>
	      <script src="dist/js/vendor/html5shiv.js"></script>
	      <script src="dist/js/vendor/respond.min.js"></script>
	    <![endif]-->
	</head>
	<body>
		<!--页面导航-->
		<div class="alert alert-success" role="alert">
			商品管理&nbsp;>&nbsp;回收站列表
		</div>
		<p>
			<a href="<?php echo U('Goods/index')?>" class="btn btn-info btn-sm">返回</a>
		</p>
		<table class="table table-hover">
			<tr class="active">
			  <th width="20"><input type="checkbox" name="" id="" /></th>
			  <th width="90">商品ID</th>
			  <th>商品名称</th>
			  <th>单位</th>
			  <th>市场价</th>
			  <th>商城价</th>
			  <th>库存</th>
			  <th>上架时间</th>
			  <th>列表图</th>
			  <th>商品货号</th>
			  <th>排序</th>
			  <th width="200">操作</th>
			</tr>
			<?php foreach ($goodsData as $v){?>
			<tr>
				<td><input type="checkbox" name="" id="" /></td>
				<td><?php echo $v['goods_id']?></td>
				<td><?php echo $v['goods_name']?></td>
				<td><?php echo $v['unit']?></td>
				<td><?php echo $v['market_price']?></td>
				<td><?php echo $v['shop_price']?></td>
				<td><?php echo $v['goods_number']?></td>
				<td><?php echo date('Y-m-i',$v['add_time'])?></td>
				<td><img src="<?php echo $v['list_pics']?>" alt="" width="100" height="" /></td>
				<td><?php echo $v['goods_sn']?></td>
				<td><?php echo $v['sort_order']?></td>
				<td>
					<a href="<?php echo U('restore',array('goods_id'=>$v['goods_id']))?>" class="btn btn-sm btn-info">还原</a>
					<a href="javascript:if(confirm('确认删除？')) location.href='<?php echo U('realDel',array('goods_id'=>$v['goods_id']))?>';" class="btn btn-sm btn-danger">删除</a>
				</td>
			</tr>
			<?php }?>
		</table>
		<center>
			<div class="pagination">
				<ul>
					<?php echo $page?>
				</ul>
			</div>
		</center>
	</body>
</html>